<?php
class Form_Login extends Zend_Form
{
    public function init()
    {
        $this->setName('login');
        $this->setAction('/auth/login');
        $this->setMethod('POST');

        $this->addElement('text', 'email', array(
            'label'      => 'email',
            'required'   => true,
            'filters'    => array('StringTrim'),
            'validators' => array('EmailAddress')
        ));
        
        $this->addElement('password', 'password', array(
            'label'      => 'password',
            'required'   => true,
            'validators' => array('NotEmpty')
        ));

        $this->addElement('submit', 'login');
    }
}